table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #4a90e2;  /* 修改为淡蓝色 */
    color: white;
    font-weight: bold;
}

tr {
    border-bottom: 1px solid #dddddd;
}

tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tr:last-of-type {
    border-bottom: 2px solid #4a90e2;  /* 修改为淡蓝色 */
}

tr:hover {
    background-color: #f1f1f1;
}

/* 新增分页样式 */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #4a90e2;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #4a90e2;
    color: white;
    border: 1px solid #4a90e2;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* 新增操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons a {
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 3px;
}

.edit-btn {
    background-color: #4a90e2;
    color: white;
}

.delete-btn {
    background-color: #ff4757;
    color: white;
}

/* 新增标题样式 */
.page-title {
    text-align: center;
    color: #4a90e2;
    margin-bottom: 20px;
}

/* 新增添加按钮样式 */
.add-btn {
    background-color: #4a90e2;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
    margin: 10px 0;
}


/* 新增表单样式 */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 96%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-buttons {
    margin-top: 20px;
    text-align: right;
}
